﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Acme.BookStore.FormWhxDto.BinlocationDto
{
    public class CreateUpdatelocationModelDto
    {
        /// <summary>
        /// 库位编码
        /// </summary>
        [Required(ErrorMessage = "库位编码不能为空")]
        public string LocationId { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        [Required(ErrorMessage = "库位名称不能为空")]
        public string LocationName { get; set; }

        /// <summary>
        /// 库位容量（m³ ），数值类型
        /// </summary>
        [Range(0, double.MaxValue, ErrorMessage = "库位容量必须大于或等于0")]
        public decimal Capacity { get; set; }

        /// <summary>
        /// 库位主管
        /// </summary>
        public string? Supervisor { get; set; }

        /// <summary>
        /// 库位状态（启用/停用，用枚举或字符串等，这里演示用字符串，也可定义枚举类型）
        /// </summary>
        public int Status { get; set; } = 1; // 默认启用

        /// <summary>
        /// 排序字段
        /// </summary>
        public int SortOrder { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks { get; set; }

        /// <summary>
        /// 仓库ID  外键
        /// </summary>
        public Guid WarehouseId { get; set; }
    }
}
